<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 
	xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:p="http://primefaces.org/ui" >

<!-- <ui:composition template="loginTemplate.xhtml"> -->
<!-- <ui:composition template="../../resources/template/loginTemplate.xhtml"> -->
<ui:composition template="../../resources/template/loginTemplate.xhtml">
        
        <ui:define name="title">
            Associacao
        </ui:define>

        <ui:define name="content">
            <p:panel header="Login" styleClass="painel-login">
                <h:form id="formLogin" style="font-size:70%">
                    <p:messages globalOnly="true" showSummary="true" redisplay="false"/>
                    <h:panelGrid columns="3" columnClasses="first-column second-column">
                              
                            <h:outputLabel value="#{bundle.loginUserName}" />
                            <p:inputText value="#{loginMB.email}" label="Email" id="login" required="true">
                                <p:focus for="login" />
                                <f:validateLength minimum="2" /> 
                            </p:inputText>
                            <p:message id="mensagemLogin" for="login"  />
                            
                            <h:outputLabel value="#{bundle.loginPassword}" />
                            <p:password  value="#{loginMB.password}" label="Password" id="senha" required="true" autocomplete="off">
                                <f:validateLength minimum="2" /> 
                            </p:password>
                            <p:message id="mensagemSenha" for="senha"  />
                    </h:panelGrid>
                    <h:panelGrid style="margin: auto" columns="2">
                    
                    <p:commandButton action="#{loginMB.login}" value="Log in" ajax="false" />
                    
<!--                         <p:commandButton id="botaoEntrar" type="submit" value="Entrar" ajax="false" action="#{loginController.checaLogin}"/>  -->
<!--                         <p:commandButton id="botaoLimpar" type="reset" value="Limpar" ajax="false"/>  -->
                    </h:panelGrid>

                </h:form>
            </p:panel>
        </ui:define>
    </ui:composition>
    </html>

